    <div class="page-header">
        <h1>Inscription <small>ou connectez-vous avec votre compte facebook</small></h1>
    </div>
	<div class="col-md-6 ">
        <form class="form-horizontal" role="form" action="<?php echo base_url();?>/index.php/inscription" method="post" accept-charset="utf-8">
        
            <div class="form-group">
                <label class="col-sm-offset-2 control-label">
                  <input type="radio" id="gender" name="gender" value="1" <?php echo isset($_POST['gender']) && $_POST['gender'] == 1 ? "checked" : "" ?> > M.</input>
                </label>
                <label class="col-sm-offset-2 control-label" >
                  <input type="radio" id="gender" name="gender" value="2" <?php echo isset($_POST['gender']) && $_POST['gender'] == 2 ? "checked" : "" ?> > Melle.</input>
                </label>
                <label class="col-sm-offset-2 control-label">
                  <input type="radio" id="gender" name="gender" value="3" <?php echo isset($_POST['gender']) && $_POST['gender'] == 3 ? "checked" : "" ?> > Mme.</input>
                </label>
            </div>
        
            <div class="form-group">
                <label for="firstname" class="col-sm-3 control-label">Prénom</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control" name="firstname" value="<?php echo set_value('firstname'); ?>" placeholder="Prénom" required="required" maxlength="255" />
                </div>
                <div  class="col-sm-11">
                    <?php echo form_error('firstname'); ?>
                </div>
            </div>
            
            <div class="form-group">
                <label for="name" class="col-sm-3 control-label">Nom</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control" name="name" value="<?php echo set_value('name'); ?>" placeholder="Nom" required="required" maxlength="255" />
                </div>
                
                <div  class="col-sm-11">
                	
                    <?php
					if($pb_email != NULL)
						echo '<p class="text-danger error">Cette adresse email est déjà utilisée</p>';
					 echo form_error('name'); ?>
                </div>
            </div>
            
            <div class="form-group">
                <label for="email" class="col-sm-3 control-label">Email</label>
                <div class="col-sm-7">
                <input type="email" class="form-control" name="email" value="<?php echo set_value('email'); ?>" placeholder="Email" required="required" maxlength="255"/>
                </div>
                <div  class="col-sm-11">
                    <?php echo form_error('email'); ?>
                </div>
            </div>
            
            <div class="form-group">
                <label for="pass" class="col-sm-3 control-label">Mot de passe</label>
                <div class="col-sm-7">
                <input type="password" class="form-control" name="pass" value="<?php echo set_value('pass'); ?>" placeholder="Mot de passe" required="required" maxlength="255"/>
                </div>
                <div class="col-sm-11">
                     <?php echo form_error('pass'); ?>
                </div>
            </div>
            
            <div class="form-group">
                <label for="confirm" class="col-sm-3 control-label">Confirmation</label>
                <div class="col-sm-7">
                <input type="password" class="form-control" name="confirm" value="<?php echo set_value('confirm'); ?>" placeholder="Confirmation mot de passe" required="required" maxlength="255"/>
                </div>
                
                <div  class="col-sm-11">
                    <?php echo form_error('confirm'); ?>
                </div>
            </div>
            
            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-3">
                    <button type="submit" class="btn btn-primary btn-lg">Enregistrer !</button>
                </div>
            </div>
        
        </form>
    </div>
    
    <div class="col-md-6">
    	<div class="col-sm-offset-2">
			
			<?php if ($user): ?>
            <a href="<?php echo base_url()."index.php/inscription/logout"; ?>">Se déconnecter</a>
            <?php else: ?>
            <div>
            	<p class="text-muted">Ou alors, connectez-vous avec votre compte facebook.</p>
                <br /><br />
                <a href="<?php echo $loginUrl; ?>"><img src="<?php echo base_url()."assets/img/facebook_connect_fr.png"; ?>" alt="..." class="img-rounded"></a>
            </div>

            <form class="form-horizontal" role="form" action="<?php echo base_url();?>/index.php/login" method="post" accept-charset="utf-8">
        
                <div class="form-group">
                    <label for="email" class="col-sm-1 control-label">Email</label>
                    <div class="col-sm-8">
                        <input type="email" class="form-control" name="email" value="<?php echo set_value('email'); ?>" placeholder="Email" required="required" maxlength="255"/>
                    </div>
                    <div  class="col-sm-11">
                        <?php echo form_error('email'); ?>
                    </div>
                </div>
            
            <div class="form-group">
                <label for="pass" class="col-sm-2 control-label">Mot de passe</label>
                <div class="col-sm-8">
                <input type="password" class="form-control" name="pass" value="<?php echo set_value('pass'); ?>" placeholder="Mot de passe" required="required" maxlength="255"/>
                </div>
                <div class="col-sm-11">
                     <?php echo form_error('pass'); ?>
                </div>
            </div>
            </form>

            <?php endif  ?>
        </div>
    </div>
